package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 产品注册对象 dzbq_deviceregister
 * 
 * @author tianxingxia
 * @date 2025-02-07
 */
public class Deviceregister extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 注册ID */
    private Long registerId;

    /** 硬件ID */
    @Excel(name = "硬件ID")
    private String sn;

    /** 设备ID */
    @Excel(name = "设备ID")
    private Long deviceId;

    /** 产品类型 */
    @Excel(name = "产品类型")
    private Long typeId;

    /** CpuID */
    @Excel(name = "CpuID")
    private Integer cpuId;

    /** 电量 */
    @Excel(name = "电量")
    private Integer power;

    /** 信号值 */
    @Excel(name = "信号值")
    private Integer singal;

    /** 流量 */
    @Excel(name = "流量")
    private Integer flow;

    /** 充电次数 */
    @Excel(name = "充电次数")
    private Integer chargeTimes;

    /** 是否删除 */
    @Excel(name = "是否删除")
    private Integer isDeleted;

    /** 更新日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updateDate;

    /** 创建日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date dateCreated;

    public void setRegisterId(Long registerId) 
    {
        this.registerId = registerId;
    }

    public Long getRegisterId() 
    {
        return registerId;
    }
    public void setSn(String sn) 
    {
        this.sn = sn;
    }

    public String getSn() 
    {
        return sn;
    }
    public void setDeviceId(Long deviceId) 
    {
        this.deviceId = deviceId;
    }

    public Long getDeviceId() 
    {
        return deviceId;
    }
    public void setTypeId(Long typeId) 
    {
        this.typeId = typeId;
    }

    public Long getTypeId() 
    {
        return typeId;
    }
    public void setCpuId(Integer cpuId) 
    {
        this.cpuId = cpuId;
    }

    public Integer getCpuId() 
    {
        return cpuId;
    }
    public void setPower(Integer power) 
    {
        this.power = power;
    }

    public Integer getPower() 
    {
        return power;
    }
    public void setSingal(Integer singal) 
    {
        this.singal = singal;
    }

    public Integer getSingal() 
    {
        return singal;
    }
    public void setFlow(Integer flow) 
    {
        this.flow = flow;
    }

    public Integer getFlow() 
    {
        return flow;
    }
    public void setChargeTimes(Integer chargeTimes) 
    {
        this.chargeTimes = chargeTimes;
    }

    public Integer getChargeTimes() 
    {
        return chargeTimes;
    }
    public void setIsDeleted(Integer isDeleted) 
    {
        this.isDeleted = isDeleted;
    }

    public Integer getIsDeleted() 
    {
        return isDeleted;
    }
    public void setUpdateDate(Date updateDate) 
    {
        this.updateDate = updateDate;
    }

    public Date getUpdateDate() 
    {
        return updateDate;
    }
    public void setDateCreated(Date dateCreated) 
    {
        this.dateCreated = dateCreated;
    }

    public Date getDateCreated() 
    {
        return dateCreated;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("registerId", getRegisterId())
            .append("sn", getSn())
            .append("deviceId", getDeviceId())
            .append("typeId", getTypeId())
            .append("cpuId", getCpuId())
            .append("power", getPower())
            .append("singal", getSingal())
            .append("flow", getFlow())
            .append("chargeTimes", getChargeTimes())
            .append("isDeleted", getIsDeleted())
            .append("updateDate", getUpdateDate())
            .append("dateCreated", getDateCreated())
            .toString();
    }
}
